package com.think.archive.service;

import com.alibaba.fastjson.JSONArray;
import com.think.archive.model.SysFunc;
import com.think.archive.model.SysDept;

import java.util.List;

public interface SysDeptService {

    SysDept select(int id) ;

    SysDept selectByDeptCode(String deptCode) ;

    int insertOrUpdateDept(SysDept dept);

    int deleteDept(int id);

    int changeStatusDept(int id ,String status);

    JSONArray findDeptTree(String deptCode);

    List<SysDept> findNextLevelDept(String deptCode);

}
